package com.vken.blog.service;

import org.springframework.transaction.annotation.Transactional;

import com.vken.blog.model.Entry;
import com.vken.blog.util.Pagination;

@Transactional
public interface EntryManager {
	public void insert(Entry entry, Integer categoryId);

	public Entry get(Integer id);

	@Transactional(readOnly = true)
	public Pagination getListByCategoryId(Integer categoryId, Integer status, int pageSize,
			int pageNumber);

	@Transactional(readOnly = true)
	public Pagination getListByBlogId(Integer blogId, Integer status, int pageSize, int pageNumber);

	public void update(Entry entry);

	public void delete(Integer id);

}
